package com.lhg.pattern.creational.abstractfactory;

import com.lhg.pattern.creational.factory.Shape;

public  class ColorFactory extends AbstractFactory {
    public Color getColor(String color){
        if ("RED".equalsIgnoreCase(color)){
            return new Red();
        }else if("GREEN".equalsIgnoreCase(color)){
            return new Green();
        }else if ("BLUE".equalsIgnoreCase(color)){
            return new Blue();
        }
        return null;
    }

    @Override
    public Shape getShape(String shape) {
        return null;
    }

}
